package com.pentalog.training.rest.webservice;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import org.springframework.beans.factory.annotation.Autowired;

import com.pentalog.training.soap.spring.HelloWorldService;
@Path("/pentalog/")
public class HelloWorldRSImpl implements HelloWorldRS {
	@Autowired
	HelloWorldService helloWorldService;
	
	@GET
	@Path("/address/{name}/{location}")
	@Produces("text/plain")
	public String getLocation(@PathParam("name") String name, @PathParam("location") String location){
		return helloWorldService.getLocation(name, location);
	}
}
